#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from common.readelement import Element
from page_object.webpage import WebPage

view = Element('jzsz/bop/viewadvice')

class ViewAdvicePage(WebPage):
    def choose_rsp(self):
        self.is_click(view['意见反馈管理'])

    def search_name(self,name='谢海斌'):
        self.is_click(view['搜索反馈人姓名'])
        self.input_text(view['搜索反馈人姓名'],name)

    def serarch(self):
        self.is_click(view['搜索'])

    def switch_iframe(self):
        self.change_iframe('//iframe[@id="right-iframe"]')

    def check_list(self):
        self.is_click(view['下拉列表'])

    def find_not_resolve(self):
        self.is_click(view['未处理'])

    def handle(self):
        self.is_click(view['处理'])

    def input_res(self,context='同意建议，转交开发人员处理'):
        self.input_text(view['审核意见'],context)

    def finish_handle(self):
        self.is_click(view['处理完成'])

    def ignore(self):
        self.is_click(view['忽略'])



